<include file="public@header" />
</head>
<body>

<div class="wrap js-check-wrap">
    <!--<form class="well form-inline margin-top-20" method="post" action="{:url('User/index')}">
        店铺名:
        <input type="text" class="form-control" name="user_login" style="width: 120px;" value="{:input('request.user_login/s','')}" placeholder="请输入{:lang('USERNAME')}">
        邮箱:
        <input type="text" class="form-control" name="user_email" style="width: 120px;" value="{:input('request.user_email/s','')}" placeholder="请输入{:lang('EMAIL')}">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('User/index')}">清空</a>
    </form>-->
   <!-- <table class="table">
        <caption >店铺详情</caption>
        <thead>
        <tr>
            <th>编号</th>
            <th>店铺名称</th>
            <th>店铺类别</th>
            <th>商品类别</th>
            &lt;!&ndash;<th>商品类别商品</th>&ndash;&gt;
            <th>负责人</th>
            <th>加盟费</th>
            <th>负责人手机</th>
            <th>店铺电话</th>
            <th>店铺地址</th>
            <th>操作人</th>
            <th>创建时间</th>
            <th>激活时间</th>
            <th>操作</th>
            <th>状态</th>

        </tr>
        </thead>
        <tbody>

<foreach name="shop" item="vo">
    <php>
        $status=array("1"=>'开启',"0"=>'禁用');
    </php>

        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.store_name}</td>
            <td>{$vo.cat_store}</td>
            <td>{$vo.cat_goods}</td>
            &lt;!&ndash;<td>{$vo.cat_ware}</td>&ndash;&gt;
            <td>{$vo.principal}</td>
            <td>{$vo.franchise_fee}</td>
            <td>{$vo.mobile}</td>
            <td>{$vo.phone}</td>
            <td>{$vo.address}</td>
            <td>{$vo.operator}</td>
            <td>{$vo.ctime|date="Y-m-d H:i",###}</td>
            <td>{$vo.jtime|date="Y-m-d H:i",###}</td>
            <td><a href="{:url('Shopdetail/del',array('id'=>$vo['id']))}" onClick="return confirm('确定删除?');">删除</a></td>
            <td>
                &lt;!&ndash;<input type="button" value="未启用" class="inputButton"/>&ndash;&gt;
                <if condition="($vo['status']==0)">
                    <a href="{:url('Shopdetail/status',array('id'=>$vo['id']))}" >禁用</a>
                    <elseif condition="$vo['status'] eq 1"/>
                    <a href="{:url('Shopdetail/status',array('id'=>$vo['id']))}">启用</a>

                </if>
            </td>
        </tr>
</foreach>
        </tbody>
    </table>-->

    <table class="table table-hover table-bordered">
        <thead>

        <tr>
            <th>编号</th>
            <th>店铺名称</th>
            <th>店铺类别</th>
            <th>商品类别</th>
            <!--<th>商品类别商品</th>-->
            <th>负责人</th>
            <th>加盟费</th>
            <th>负责人手机</th>
            <th>店铺电话</th>
            <th>店铺地址</th>
            <th>操作人</th>
            <th>创建时间</th>
            <th>激活时间</th>
            <th>操作</th>
            <th>状态</th>

        </tr>

        </thead>
        <tbody>
        <foreach name="shop" item="vo">
            <php>
                $status=array("1"=>'开启',"0"=>'禁用');
            </php>

            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.store_name}</td>
                <td>{$vo.cat_store}</td>
                <td>{$vo.cat_goods}</td>
                <!--<td>{$vo.cat_ware}</td>-->
                <td>{$vo.principal}</td>
                <td>{$vo.franchise_fee}</td>
                <td>{$vo.mobile}</td>
                <td>{$vo.phone}</td>
                <td>{$vo.address}</td>
                <td>{$vo.operator}</td>
                <td>{$vo.ctime|date="Y-m-d H:i",###}</td>
                <td>{$vo.jtime|date="Y-m-d H:i",###}</td>
                <td><a href="{:url('Shopdetail/del',array('id'=>$vo['id']))}" onClick="return confirm('确定删除?');">删除</a></td>
                <td>
                    <!--<input type="button" value="未启用" class="inputButton"/>-->
                    <if condition="($vo['status']==0)">
                        <a href="{:url('Shopdetail/status',array('id'=>$vo['id']))}" >禁用</a>
                        <elseif condition="$vo['status'] eq 1"/>
                        <a href="{:url('Shopdetail/status',array('id'=>$vo['id']))}">启用</a>

                    </if>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>

</div>

</body>
</html>